/**
 * 
 */
package denaris.core;

import denaris.core.entity.AbstractEntity;
import denaris.core.listener.ICollisionListener;

/**
 * <p>
 * Implements the ICollisionListener interface. Here's an example when to use
 * this class:
 * </p>
 * <code>
 * PlayerEntityGroup playerGroup;<br/>
 * playerGroup.setCollisionListener(new CollisionAdapter(){<br/>
 *   onCollision(AbstractEntityGroup source, AbstractEntityGroup opponent){<br/>
 // handle collision with an enemy here<br/>
 * }<br/>
 * </code>
 * <p>
 * If you were using the ICollisionListener above you would have to implement
 * the three other collision methods as well even though you need only one.
 * </p>
 * 
 * @author stkl23
 * 
 */
public class CollisionAdapter implements ICollisionListener {

	/*
	 * (non-Javadoc)
	 * 
	 * @see denaris.core.listener.ICollisionListener#onCollision(denaris.core.AbstractEntityGroup,
	 *      denaris.core.AbstractEntityGroup)
	 */
	public void onCollision(AbstractEntity source,
			AbstractEntity opponent) {
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see denaris.core.listener.ICollisionListener#onCollision(denaris.core.AbstractEntityGroup,
	 *      denaris.core.AbstractDenarisMap)
	 */
	public void onCollision(AbstractEntity source, AbstractDenarisMap map) {
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see denaris.core.listener.ICollisionListener#onCollision(denaris.core.AbstractParticle,
	 *      denaris.core.AbstractEntityGroup)
	 */
	public void onCollision(AbstractParticle source,
			AbstractEntity opponent) {
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see denaris.core.listener.ICollisionListener#onCollision(denaris.core.AbstractParticle,
	 *      denaris.core.AbstractDenarisMap)
	 */
	public void onCollision(AbstractParticle source, AbstractDenarisMap map) {
	}
}
